package com.itheima.stock.service;

import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.vo.resp.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface StockService {
    /**
     *  个股描述
     */
    R<GeGuMsg> getMsg(Integer code);

    /**
     * 获取所有股票信息
     * @return
     */
    List<StockBusiness> getAllStockBusiness();

    R<List<Map>> getInnerStockMarket();

    R<List<Map>> getSectorAllLimit();

    R<List<Map>> getStockIncrease();

    R<PageResult> getStockAll(Integer page, Integer pageSize);

    R<Map> getStockUpDownLimitCount();

    void exportStockExcel(HttpServletResponse response, Integer page, Integer pageSize) throws IOException;

    R<Map> getStockTravolCompare();

    R<Map> getStockUpDownScope();

    R<List<Map>> getStockScreenMinuteSharing(String stockCode);

    R<List<Map>> getDayKLinData(String code);

    R<List<Map>> getSerchStr(String searchStr);

    R<Map> getdetail(String code);          //个股最新分时行情数据接口分析

    //个股周K线详情接口方法
    R<List<StockKWeekRespVo>> getWeekKLineData(String stockCode);



    R<List<StockSingleStream>> getSingleStream(String code);
}
